package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理 对象 orders
 * 
 * @author liukangzu
 * @date 2025-04-17
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单号 */
    @Excel(name = "订单号")
    private Integer orderId;

    /** 预制菜id */
    @Excel(name = "预制菜id")
    private Integer orderPremaidFoodId;

    /** 客户id */
    @Excel(name = "客户id")
    private Integer orderCustomerId;

    /** 订单数量 */
    @Excel(name = "订单数量")
    private Integer orderCount;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private Double orderPrice;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer orderState;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rderAddtime;


    private PremaidFood premaidFood;
    private Customer customer;

    // 添加 getter 和 setter
    public PremaidFood getPremaidFood() {
        return premaidFood;
    }

    public void setPremaidFood(PremaidFood premaidFood) {
        this.premaidFood = premaidFood;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public void setOrderId(Integer orderId)
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }

    public void setOrderPremaidFoodId(Integer orderPremaidFoodId) 
    {
        this.orderPremaidFoodId = orderPremaidFoodId;
    }

    public Integer getOrderPremaidFoodId() 
    {
        return orderPremaidFoodId;
    }

    public void setOrderCustomerId(Integer orderCustomerId) 
    {
        this.orderCustomerId = orderCustomerId;
    }

    public Integer getOrderCustomerId() 
    {
        return orderCustomerId;
    }

    public void setOrderCount(Integer orderCount) 
    {
        this.orderCount = orderCount;
    }

    public Integer getOrderCount() 
    {
        return orderCount;
    }

    public void setOrderPrice(Double orderPrice) 
    {
        this.orderPrice = orderPrice;
    }

    public Double getOrderPrice() 
    {
        return orderPrice;
    }

    public void setOrderState(Integer orderState) 
    {
        this.orderState = orderState;
    }

    public Integer getOrderState() 
    {
        return orderState;
    }

    public void setRderAddtime(Date rderAddtime) 
    {
        this.rderAddtime = rderAddtime;
    }

    public Date getRderAddtime() 
    {
        return rderAddtime;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "orderId=" + orderId +
                ", orderPremaidFoodId=" + orderPremaidFoodId +
                ", orderCustomerId=" + orderCustomerId +
                ", orderCount=" + orderCount +
                ", orderPrice=" + orderPrice +
                ", orderState=" + orderState +
                ", rderAddtime=" + rderAddtime +
                ", premaidFood=" + premaidFood +
                ", customer=" + customer +
                '}';
    }
}
